import request from '@/utils/request'

    /* list 用户条款 */
    export const listSetting = () => 
    request({
        url:'/sys/user_terms/get_user_terms_list',//获取用户条款列表
        method: 'get'
         
    })

    /* 新增 用户条款 */
	export const EditItemSetting = (url,form) => 
    request({
        url,
        method: 'post',
        data:JSON.stringify(form) 
    })
    
    /* 获取指定的用户条款 */
    export const getSettingItem = (code) => 
    request({
        url:'/sys/user_terms/get_user_terms',
        method: 'get',
        params:{
            code
        }
    })

    /* 删除 用户条款 */
    export const delListSetting = (code) => 
    request({
        url:'/sys/user_terms/delete_user_terms',
        method: 'get',
        params:{
            code
        }
    })


    /*list 线下门店*/
    
    export const listShop = () =>
    request({
        url:'/pubilc/get_offline_shop_list',
        method:'get' 
    })
    // 删除 线下旗舰店
    export const delShop = (code) => 
    request({
        url:'/sys/offline_shop/delete_offline_shop',
        method: 'get',
        params:{
            code
        }
    })
    
    export const submit_offlineShop = (url,form) => 
    request({
        url,
        method: 'post',
        params:JSON.stringify(form) 
    })

    // 获取指定的线下旗舰店
    export const get_offlineShop = (code) => 
    request({
        url:'/sys/offline_shop/get_offline_shop',
        method: 'get',
        params:{
            code
        }
    })